//
//  DNTosatHUD.swift
//  LunalerApp
//
//  Created by 露乐ios on 2018/3/8.
//  Copyright © 2018年 露乐ios. All rights reserved.
//

import UIKit

class DNTosatHUD: UIResponder {
    
    func clear() -> Void {
        SwiftNotice.clear()
    }
    
    func noticeOnStatusBar(text:String,autoClear:Bool,autoClearTime:Int) -> UIWindow {
        return SwiftNotice.noticeOnStatusBar(text,autoClear: autoClear,autoClearTime: autoClearTime)
    }
    
    func pleaseWaitHUD() -> UIWindow {
        return SwiftNotice.wait()
    }
    
    func noticeOnlyText(text:String) -> UIWindow {
        return SwiftNotice.showText(text)
    }
    
    func successNotice(text:String,autoClear:Bool = true) -> UIWindow {
        return SwiftNotice.showNoticeWithText(NoticeType.success, text: text, autoClear: autoClear, autoClearTime: 2)
    }
    
}
